package net.sunofbeach.blog.services;

import net.sunofbeach.blog.pojo.Article;
import net.sunofbeach.blog.response.ResponseResult;

public interface IArticleService {
    ResponseResult postArticle(Article article);

    ResponseResult listArticles(int page, int size, String keyword, String categoryId,String state);

    ResponseResult getArticleById(String articleId);
    ResponseResult getArticleByIdForApp(String articleId);

    ResponseResult updateArticle(String articleId, Article article);

    ResponseResult deleteArticleById(String articleId);

    ResponseResult deleteArticleByUpdateState(String articleId);

    ResponseResult topArticle(String articleId);

    ResponseResult getArticleByIdForAdmin(String articleId);

    ResponseResult listTopArticles();

    ResponseResult listRecommendArticle(String articleId, int size);

    ResponseResult listArticlesByLabel(int page, int size, String label);

    ResponseResult listLabels(int size);

    ResponseResult listArticlesByCategoryId(int page, int size, String articleCategoryId);

    ResponseResult getArticleCount();


}
